#ifndef DUMP_PACKET_H
#define DUMP_PACKET_H

#include <string.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <netinet/ip_icmp.h>
#include <netinet/udp.h>
#include <arpa/inet.h>
#include <netinet/ether.h>

#include "log_file.h"
extern struct sockaddr_in src_addr;
extern struct sockaddr_in dst_addr;

void dump_ethernet_header( unsigned char *buffer, int sz);

void dump_ip_header( unsigned char *buffer, int sz);

void dump_icmp_packet( unsigned char *buffer, int sz);

void dump_udp_packet( unsigned char *buffer, int sz);
void dump_tcp_packet( unsigned char *buffer, int sz);

void dump_payload( unsigned char *buffer, int sz);

#endif
